package com.jhs.kjs.service.impl;

import java.util.List;
import java.util.Map;

import com.jhs.kjs.dto.CustomerDTO;
import com.jhs.kjs.dto.UserDTO;
import com.jhs.kjs.service.ICommonService;
import com.jhs.kjs.service.dao.ICommonMapper;

public class CommonServiceImpl implements ICommonService{

	private ICommonMapper mapper;

	public void setMapper(ICommonMapper mapper) {
		this.mapper = mapper;
	}

	
	@Override
	public UserDTO getUser(Map<String, String> param) {
		return this.mapper.getUser(param);
	}
	
	@Override
	public CustomerDTO getCustomer(Map<String, Long> param) {
		return this.mapper.getCustomer(param);
	}


	@Override
	public List<CustomerDTO> getSearchCustomer() throws Exception {
		return this.mapper.getSearchCustomer();
	}
}
